{yun:}include file="$wapstyle/member/header.htm"{/yun} 
<link rel="stylesheet" href="{yun:}$wap_style{/yun}/js/mui/css/mui.picker.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
<link rel="stylesheet" href="{yun:}$wap_style{/yun}/js/mui/css/mui.poppicker.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
<div class="main_member_cot_box">
<div class="wap_member_comp_h1"><span>私信</span></div>
{yun:}if !empty($rows){/yun}		
		{yun:}foreach from=$rows item=v{/yun}		
			<div class="com_member_hr">				
				<div class="com_member_hr_name"> 
					<a  class="wap_member_com_name  com_member_hr_cblue">管理员</a>
				</div>
						
				<div class="com_member_user_box">
					<div class="com_member_hr_tj">
						<div class="com_member_hr_p1">
						  <div class="com_member_hr_p1"><span class="member_c9">内容：</span>{yun:}$v.content{/yun}</div>
						</div>
					</div>
			
					<div class="com_member_hr_p1">
						<span class="member_c9">日期：{yun:}$v.ctime|date_format:"%Y-%m-%d %H:%M"{/yun} </span>
					</div>
					<div class="com_member_hr_p5">状态：
					{yun:}if $v.remind_status=='0'{/yun}
						<span class="wap_member_post_list_zt">未查看 </span>
					{yun:}elseif $v.remind_status=='1'{/yun}
						<span class="wap_member_post_list_zt ap_member_post_list_zt_gq">已查看 </span>
					{yun:}/if{/yun}
				</div>
					
					
					
					<div class="com_member_hr_cz">
						<em class="user_size">
							{yun:}if $v.remind_status=='0'{/yun}
						<a  class="sxnewsPicker" data-id="{yun:}$v.id{/yun}">设置状态</a>
						{yun:}/if{/yun}
							<a href="javascript:void(0)" onclick="layer_del('确定要删除？','index.php?c=delsxnews&id={yun:}$v.id{/yun}')" class="yun_member_hr_bth">删除</a>
						</em> 
					</div> 
				</div> 
			</div>
		{yun:}/foreach{/yun}
		
	{yun:}else{/yun} 
		
		<div class="wap_member_no">
			没有私信记录。
		</div> 
	
	{yun:}/if{/yun} 

</section>
<div class="pages"> {yun:}$pagenav{/yun}</div>
<script src="{yun:}$wap_style{/yun}/js/mui/mui.picker.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/mui/mui.poppicker.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script>
var sxnewsData = [];
sxnewsData.push(
	{
		value: '0',
		text: '未查看'
	},
	{
		value: '1',
		text: '已查看'
	}
)
mui.init();
$(".sxnewsPicker").each(function(i,arr){
	var id=arr.dataset.id;
	var sxnewsPicker = new mui.PopPicker();
	sxnewsPicker.setData(sxnewsData);
	arr.addEventListener('tap', function(event) {
		sxnewsPicker.show(function(items) {
			$.post("index.php?c=sxnewsset",{id:id,remind_status:items[0].value},function(data){
				layermsg("设置成功！", 2,function(){location.reload();});
			})
		});
	}, false);
});
</script>
{yun:}include file="$wapstyle/footer.htm"{/yun} 